<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8"/>
    <title>API监控器</title>
    <style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f7f9fc;
            padding: 20px;
            width: 320px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            border-radius: 10px;
            margin: 0 auto;
        }

        h3 {
            text-align: center;
            color: #333;
            margin-bottom: 20px;
        }

        input[type="text"] {
            width: 100%;
            padding: 10px 12px;
            font-size: 14px;
            border: 1px solid #ccc;
            border-radius: 6px;
            box-sizing: border-box;
            margin-top: 10px;
            transition: border-color 0.3s ease;
        }

        input[type="text"]:focus {
            border-color: #007bff;
            outline: none;
            box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
        }

        button {
            width: 100%;
            padding: 12px;
            margin-top: 15px;
            font-size: 15px;
            font-weight: bold;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        #startBtn {
            background-color: #28a745;
            color: white;
        }

        #startBtn:hover {
            background-color: #218838;
        }

        #stopBtn {
            background-color: #dc3545;
            color: white;
            margin-top: 10px;
        }

        #stopBtn:hover {
            background-color: #c82333;
        }

        .status {
            text-align: center;
            margin-top: 15px;
            font-size: 13px;
            color: #666;
        }
    </style>
</head>
<body>
<h3>API监控器</h3>
<input type="text" id="urlInput" placeholder="请输入目标网址（如：https://example.com）"/>
<button id="startBtn">开始监控</button>
<button id="stopBtn">停止并查看结果</button>
<div class="status" id="statusText"></div>

<script src="popup.js"></script>
</body>
</html>
